<style>
	/* 重写/supermanager/css/style.css的分页样式，避免引入太多的CSS引起冲突*/
	/* page */
	.page-num-tab {text-align:center;padding:3px;border-top: 0px dashed #ddd;margin:1px;font-size:14px} 
	.page-num-tab a {margin:0px 2px}
	.page-numb:link {padding:2px 5px 0px 5px;border:1px #fff solid;background-color:#fff;}
	.page-numb:hover {padding:2px 5px 0px 5px;background-color:#d5e6f6;border:1px #fff solid;}
	.page-numb:visited {padding:2px 5px 0px 5px;border:1px #fff solid;background-color:#fff;}
	.page-numb-sel:link,.page-numb-sel:visited {background-color:#0449be;padding:2px 5px 0px 5px;color:#fff;text-decoration: none;}


	.include_page{width:auto;font-size:14px;color:#2965B1;float:left;}
</style>

<#if totalPageNum?exists>
	<!--有总页数才分页-->
<#assign tp=totalPageNum/> 
<#assign p=pageNo?default(1)/>
<#assign params=params?default("")/>
	
<#assign sp=p-2/>
<#assign ep=p+2/>
<#assign eoff=ep-tp/>
<#if (eoff>0)>
  <#assign sp = sp - eoff/>
</#if>
<#if (sp<=0)>
  <#assign ep = ep - sp+1/>
</#if>

<#if tp &gt; 1 >
  <div class="page-num-tab"><a href="${URL}?pageNo=1${params}">首页</a> 
  <#if (p>1)>
  <a href="${URL}?pageNo=${p-1}${params}">上一页</a>
  </#if> 
  
<#list sp..ep as x>
  <#if (x>0 && x<=tp)>
  	<#if (p=x)>
    <a href="${URL}?pageNo=${x}${params}" class="page-numb page-numb-sel">${x}</a>
    <#else>
    <a href="${URL}?pageNo=${x}${params}" class="page-numb">${x}</a>
    </#if>
  </#if>
</#list>
    
<#if (p<tp)>
	<a href="${URL}?pageNo=${p+1}${params}">下一页</a>
	<a href="${URL}?pageNo=${tp}${params}">尾页</a>
</#if>
 跳到
 
 <select name="" onchange=toPageNo("${URL}?pageNo="+this.value+"${params}")>
<#list 1..tp as i> 
 	<option value="${i}" <#if i==p> selected=selected</#if>>${i}</option>
 </#list>
  </select>
总页数:${totalPageNum}
</div>
</#if>
</#if>
<script>
	function toPageNo(url){
		window.location.href=url;
	}
</script>